"use strict";
var path = require("path");
var fse = require("fs-extra");
var config = require("./store.config.js");
var albumPath = path.resolve(__dirname, "..", config.album.contentDir);
fse.readdirSync(albumPath, "utf8").forEach(function (dir) {
    var stat = fse.statSync(path.resolve(albumPath, dir));
    if (stat.isDirectory()) {
        var content = fse.readdirSync(path.resolve(albumPath, dir), "utf8");
        content.forEach(function (file) {
            if (file.includes(".md.") || file.includes(".th.")) {
                fse.unlinkSync(path.resolve(albumPath, dir, file));
            }
        });
    }
});
